package DaEr2_2;

public class ShuangFor {
    public static void main(String[] args) {
        for (int i = 0; i < 4; i++) {
            for (int z = 0; z < 3-i; z++) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2*i+1; j++) {
                System.out.print("*");
            }
            System.out.println("");

        }
        for (int i = 0; i < 3; i++) {
            for (int z = 0; z < i+1; z++) {
                System.out.print(" ");
            }
            for (int j = 0; j < 5-2*i; j++) {
                System.out.print("*");
            }
            System.out.println("");
        }

    }
}
